#include "client_net.h"
#include "proxy_client.h"


CClientNet::CClientNet(CProxyClient& proxy_client, service_pump& pump)
	: single_socket_service< ::ext::tcp::connector>(pump)
	, proxy_client_(proxy_client)
{
	
}

CClientNet::~CClientNet(void)
{

}

bool CClientNet::on_msg(boost::uint_fast64_t id, std::string& msg)
{
	proxy_client_.on_msg(id, msg);
	return true;
}

void CClientNet::on_connect()
{
	proxy_client_.on_connect();
}
